package com.fengxing.ams.pub.email;

public enum EmailParam {
	
//	public static String SEND_EMAIL_HOST = "host";
//	public static String SEND_EMAIL_PORT = "mail.smtp.port";
//	public static String SEND_EMAIL_USER = "username";
//	public static String SEND_EMAIL_PASSWORD = "password";
//	public static String SEND_EMAIL_AUTH = "mail.smtp.auth";
	
	SEND_EMAIL_HOST("mail.smtp.host", ""),
	SEND_EMAIL_PORT("mail.smtp.port", "25"),
	SEND_EMAIL_USER("mail.smtp.username", ""),
	SEND_EMAIL_PASSWORD("mail.smtp.password", ""),
	SEND_EMAIL_AUTH("mail.smtp.auth", "true"),
	SEND_EMAIL_TIMEOUT("mail.smtp.timeout", "30"),
	SEND_EMAIL_MESSAGE("mail.smtp.message", "<html><body><p>请点击链接重置密码: {0}</p><p>请勿回复此邮件.</p></body></html>"),
	SEND_EMAIL_SUBJECT("mail.smtp.subject", "密码重置通知"),
	SEND_EMAIL_FILEPATH("mail.filePath", "emails.txt");
	
	private String sysprop;
	private String defaultValue;
	
	EmailParam(String sysprop, String defaultValue) {
		this.sysprop = sysprop;
		this.defaultValue = defaultValue;
	}
	
	public String getSysPropName() {
		return this.sysprop;
	}
	
	public String getDefaultValue() {
		return this.defaultValue;
	}
}
